function ajaxDelay() {
	delay(function() {
		peticionAjax();
	}, 640);
}

var delay = (function() {
    var timer = 0;
    return function(callback, ms) {
        clearTimeout (timer);
        timer = setTimeout(callback, ms);
    };
})();